SizeFCompat

Immutable class for describing width and height dimensions in some arbitrary unit. Width and height are finite values stored as a floating point representation.

This is a backward-compatible version of SizeF.

Constructors

Link copied to clipboard
constructor(width: Float, height: Float)

Functions

Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun getHeight(): Float
Get the height of the size (as an arbitrary unit).
Link copied to clipboard
open fun getWidth(): Float
Get the width of the size (as an arbitrary unit).
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
@RequiresApi(value = 21)
open fun toSizeF(): SizeF
Converts this SizeFCompat into a SizeF.
Link copied to clipboard
@RequiresApi(value = 21)
open fun toSizeFCompat(@NonNull size: SizeF): SizeFCompat
Converts this SizeF into a SizeFCompat.
Link copied to clipboard
open fun toString(): String